//
// Created by 29787 on 2023/12/23.
//

#ifndef ENCODER_UPRE_EX_RUPT_H
#define ENCODER_UPRE_EX_RUPT_H

#include <stdbool.h>
#include "main.h"
#include "adc.h"
typedef struct EX_RUPT
{
    bool     is_ready1;
    bool     is_ready2;
    uint8_t  Task_select;

}EX_RUPT;

enum {
    TASK_NULL=0,
    TASK1=1,
    TASK2=2,
    TASK3=3,
    TASK4=4
};
extern struct EX_RUPT Ex_Rupt;
void EX_Task_change();

void Mask1_Execute();
void Mask2_Execute();
void Mask3_Execute();
void Mask4_Execute();
#endif //ENCODER_UPRE_EX_RUPT_H